package com.java.huxb.day06.thread;

/**
 * @author huxb
 * @date 2020/4/4 0004 下午 8:30
 */
public class TicketTest {
    public static void main(String[] args) {
//        Integer ticketCount = 100;
////        TicketThread ticketThread = new TicketThread(ticketCount);
////        new Thread(ticketThread, "窗口一").start();
////        new Thread(ticketThread, "窗口二").start();
////        new Thread(ticketThread, "窗口三").start();

        new Thread(() -> {
            for (int i = 0; i < 20; i++) {
                System.out.println(i);
            }
        }).start();
    }
}
